import {createRouter, createWebHashHistory, RouteRecordRaw} from 'vue-router'

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        component: ()=>import('../views/Login.vue')
    },
    {
        path: '/login',
        name: 'Login',
        component: ()=>import('../views/Login.vue')
    }
    ,
    {
        path: '/index',
        name: 'Index',
        component: ()=>import('../views/Index.vue')
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes: routes,
})

export default router